import request from "@/utils/request";

// 获取客户方信息列表
export function getCustomerCompanyList(data) {
  return request({
    url: "/execute/info/getCustomerCompanyList",
    method: "get",
    params: data
  });
}

// 客户方=编辑角色授权
export function updateDeptType(data) {
  return request({
    url: "/execute/info/updateDeptType",
    method: "put",
    data: data
  });
}

// 客户方=新增客户方
export function addDept(data) {
  return request({
    url: "/execute/info/addDept",
    method: "post",
    data: data
  });
}

// 客户方=新增客户方
export function updateDept(data) {
  return request({
    url: "/execute/info/updateDept",
    method: "put",
    data: data
  });
}

// 验证手机号唯一
export function validPhoneUnique(phonenumber) {
  return request({
    url: "/execute/info/validPhoneUnique",
    method: "get",
    params: phonenumber
  });
}

// 验证用户编号唯一
export function validUserUnique(userName) {
  return request({
    url: "/execute/info/validUserUnique",
    method: "get",
    params: userName
  });
}

// 验证用户dept唯一
export function validDeptUnique(deptName) {
  return request({
    url: "/execute/info/validDeptUnique",
    method: "get",
    params: deptName
  });
}
